const componentBehaviors = require('../../../../behaviors/component');
import { COMPONENT_OPTIONS } from '../../../../constants/common';

Component({
    behaviors: [componentBehaviors],
    options: {
        ...COMPONENT_OPTIONS,
    },
    properties: {
        remark: {
            type: String,
            value: '',
        },
    },
    data: {
        showRemark: false,
    },
    methods: {
        // 打开备注框
        openRemarkModal: function () {
            this.setData({
                showRemark: true,
            });
        },
        // 修改备注
        remarkChange: function (event) {
            this.setData({
                showRemark: false,
            });
            this.triggerEvent('change', event.detail);
        },
    }
})
